package com.m.crm.web;

import com.m.crm.dto.BootStrapTableResult;
import com.m.crm.entity.WoType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by yugoh on 2017/5/23.
 */
@RestController
@RequestMapping("/WoTypes")
public class WoTypeController {
    /**
     * 获取工单类型列表
     *
     * @param woType
     * @param offset
     * @param limit
     * @return
     */
    @RequestMapping(method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
    public BootStrapTableResult<WoType> list(WoType woType, Integer offset, Integer limit) {
        // TODO
        return null;
    }

    /**
     * 更新工单类型信息
     *
     * @param woType
     * @return
     */
    @RequestMapping(value = "/{woTypeId}", method = RequestMethod.PUT, produces = {"application/json;charset=UTF-8"})
    public WoType update(WoType woType) {
        // TODO
        return null;
    }

    /**
     * 添加一个工单类型
     *
     * @param woType
     * @return
     */
    @RequestMapping(method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
    public WoType add(WoType woType) {
        // TODO
        return null;
    }

    /**
     * 查询一个工单类型
     *
     * @return
     */
    @RequestMapping(value = "/{woTypeId}", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
    public WoType getWoType() {
        // TODO
        return null;
    }
}
